package com.androwit.engine.mapping.converter.str;

import java.net.URI;

import com.androwit.engine.mapping.Converter;

public class URIConverter implements Converter<URI, String> {

	@Override
	public URI fromConverted(String value) throws Exception {
		return new URI(value);
	}

	@Override
	public String convert(URI value) throws Exception {
		return value == null ? "" : value.toString();
	}

}
